package cn.ejiajunxy.manager;

import com.leo.baseui.ui.BaseActivity;
import com.leo.utils.CheckUtils;

import cn.ejiajunxy.manager.utils.UserPrefManager;

/**
 * Created by zhangguobao on 2018/2/19.
 */

public class WelcomeActivity extends BaseActivity {
    @Override
    protected void init() {
        if (CheckUtils.isEmpty(UserPrefManager.getToken(this))) {
            LoginActivity.start(this);
            finish();
        } else {
            MainActivity.start(WelcomeActivity.this);
            finish();
        }
    }


    @Override
    protected int getLayoutId() {
        return 0;
    }
}
